package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

//记录票务信息
@Getter
@Setter
public class TicketSellDetail extends BaseDomain{
    private User user;//用户

    private ScenicSpot scenicSpot;//景点

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date buyingdate;//购买日期

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date validitydate;//门票有效期

    private Integer type;//门票类型

    private Integer number;//门票数量

    private BigDecimal totalPrice;//门票总额


}